package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleCommentDto;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.article.pojos.ApArticleConfig;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.StatisticsDto;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component
/*@Component*/
public class IArticleClientFallback /*implements IArticleClient*/ {

    public ResponseResult saveArticle(ArticleDto dto) {

        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }


    public PageResponseResult newPage(StatisticsDto dto) {

        PageResponseResult responseResult = new PageResponseResult(dto.getPage(),dto.getSize(),0);
        responseResult.setCode(501);
        responseResult.setErrorMessage("获取数据失败");
        return responseResult;
    }


    public ResponseResult queryLikesAndConllections(Integer wmUserId, Date beginDate, Date endDate) {

        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }


    public ResponseResult findNewsComments(ArticleCommentDto dto) {
        return null;
    }


    public ResponseResult findConfig(Long id) {
        return null;
    }
}
